<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keyword" content="">

    <title>碰撞报告 - 编制说明</title>

    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/bootstrap-reset.css" rel="stylesheet">
    <!--external css-->
    <link href="__PUBLIC__/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/css/style.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style-responsive.css" rel="stylesheet" />
    <!-- new styles-->
      <link href="__PUBLIC__/css/xxxstyle.css" rel="stylesheet" />

      <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="__PUBLIC__/js/html5shiv.js"></script>
      <script src="__PUBLIC__/js/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>
  <section id="container" class="">
      <!--main content start-->
      <section id="main-content">
          <section class="wrapper site-min-height">
              <!-- page start-->
              <!--<div class="row">-->
                  <!--<div class="col-sm-12">-->
                    <!--<div class="tab-content">-->
                      <div class="panel">
                          <div class="panel-heading"><i class="icon-file"></i>编制说明
                            <span class="pull-right">
                              <button type="button" class="btn btn-default btn-xs" onclick="javascript:window.history.back();return false;"><i class="icon-reply"></i>返回</button>
                            </span>
                          </div>
		                    <form class="form-horizontal" action="{:U('Bim/explainae')}" id="add_post" method="post">
			                          <div class="panel-body">
			                              <div class="BIMeduiBox">
			                              		<textarea class="span12 ckeditor" id="post_content" name="content" title="" required/>{$organ.content|htmlspecialchars_decode} </textarea>
			                              </div>
			                                 <input type="hidden" name="act" value="{$act}" ></label>
			                              <div class="pull-right">
			                                  <button class="btn btn-submit" type="button"  onclick="checkForm()">提交</button>
			                              </div>
			                          </div>
		                   </form>
                      </div>
                     
                    <!--</div>-->
                  <!--</div>-->
              <!--</div>-->
              <!-- page end-->
          </section>
      </section>
      <!--main content end-->
  </section>

    <script type="text/javascript">
	    window.UEDITOR_Admin_URL = "__PUBLIC__/plugins/Ueditor/";
	    var URL_upload = "{$URL_upload}";
	    var URL_fileUp = "{$URL_fileUp}";
	    var URL_scrawlUp = "{$URL_scrawlUp}";
	    var URL_getRemoteImage = "{$URL_getRemoteImage}";
	    var URL_imageManager = "{$URL_imageManager}";
	    var URL_imageUp = "{$URL_imageUp}";
	    var URL_getMovie = "{$URL_getMovie}";
	    var URL_home = "{$URL_home}";    
   </script>
	<load href="__PUBLIC__/plugins/Ueditor/ueditor.config.js"/>
	<load href="__PUBLIC__/plugins/Ueditor/ueditor.all.js"/>
    <!-- js placed at the end of the document so the pages load faster -->
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <script class="include" type="text/javascript" src="__PUBLIC__/js/jquery.dcjqaccordion.2.7.js"></script>
    <script src="__PUBLIC__/js/jquery.scrollTo.min.js"></script>
    <script src="__PUBLIC__/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/jquery.customSelect.min.js" ></script>
    
    <!--common script for all pages-->
    <script src="__PUBLIC__/js/common-scripts.js"></script>

    <!--new script for this page only-->
    <script src="__PUBLIC__/js/common-singlePage.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
    
    <script type="text/javascript">
    var editor;
    $(function () {
        //具体参数配置在  editor_config.js 中
        var options = {
            zIndex: 999,
            initialFrameWidth: "100%", //初化宽度
            initialFrameHeight: 400, //初化高度
            focus: false, //初始化时，是否让编辑器获得焦点true或false
            maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
            pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
            autoHeightEnabled: true
         /*   autotypeset: {
                mergeEmptyline: true,        //合并空行
                removeClass: true,           //去掉冗余的class
                removeEmptyline: false,      //去掉空行
                textAlign: "left",           //段落的排版方式，可以是 left,right,center,justify 去掉这个属性表示不执行排版
                imageBlockLine: 'center',    //图片的浮动方式，独占一行剧中,左右浮动，默认: center,left,right,none 去掉这个属性表示不执行排版
                pasteFilter: false,          //根据规则过滤没事粘贴进来的内容
                clearFontSize: false,        //去掉所有的内嵌字号，使用编辑器默认的字号
                clearFontFamily: false,      //去掉所有的内嵌字体，使用编辑器默认的字体
                removeEmptyNode: false,      //去掉空节点
                                             //可以去掉的标签
                removeTagNames: {"font": 1},
                indent: false,               // 行首缩进
                indentValue: '0em'           //行首缩进的大小
            }*/
        };
        editor = new UE.ui.Editor(options);
        editor.render("post_content");
    }); 
    
	
	function checkForm(){
		var con = $('#post_content').val();
		if(con==''){
			layer.msg("请填写编制说明内容！",{icon:2});
			return false;
		}
		$('#add_post').submit();
	}
    </script>

  </body>
</html>
